package sevice;

import java.util.List;

import dao.DaoFactory;
import model.Book;
import model.Product;

public class ProductServiceImp implements ProductService {

	public Book findById(int id) throws Exception {
		return DaoFactory.getProductDAO().findById(id);
	}

	@Override
	public List<Product> findByHot(int id) throws Exception {
		return DaoFactory.getProductDAO().findByHot(id);
	}

	@Override
	public List<Product> findByNew(int id) throws Exception {
		return DaoFactory.getProductDAO().findByNew(id);
	}

}